/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author CHIVO
 */
import java.rmi.*;
import java.rmi.registry.*;
public class Server{
    public Server(int port){
        try{
            LocateRegistry.createRegistry(port);
            Imple ob=new Imple();
            Naming.rebind("rmi://localhost:"+port+"/service",ob);
            System.out.println("Server Ready For Client Request On port 6000");

        }catch(Exception e){
            System.out.println(e);
        }
    }

    public static void main(String s[]){
        new Server(1075);
    }
}
